import { Scene } from "babylonjs";
import { GrassBlock } from "./../block/grass-block";
import { MaterialLib } from "./material-lib";

export class BlockLib {

	private readonly scene: Scene;
	private readonly materialLib: MaterialLib;
	private readonly blocks: {
		grass: GrassBlock,
	}

	constructor(scene: Scene, materialLib: MaterialLib) {
		this.scene = scene;
		this.materialLib = materialLib;
		this.blocks = {
			grass: new GrassBlock(this.scene, this.materialLib)
		}
	}

	public getGrassBlock(): GrassBlock {
		return this.blocks.grass;
	}

}
